package com.fulihui.weixinsdk.result;

import lombok.Data;
import org.apache.commons.lang3.StringUtils;

/**
 * 微信返回值顶层封装
 * Created by willa on 2015/10/14.
 */
@Data
public abstract class WeixinResult {
    private static final long serialVersionUID = 3687722008510722578L;

    private String errcode;
    private String errmsg;

    public boolean isSuccess() {
        return (StringUtils.isEmpty(errcode) || errcode.equals("0"));
    }
}
